﻿using System;

namespace BSharp.Compiler.Emit
{
	public class Ret : IntermediateInstruction
	{
		public readonly IFunctionInfo FunctionInfo;

		public Ret (IFunctionInfo funcInfo)
		{
			FunctionInfo = funcInfo;
		}

		public override void Visit (IntermediateCompiler compiler)
		{
			compiler.Compile (this);
		}

		public override string ToString ()
		{
			return "RET";
		}
	}
}

